﻿using System;
using System.Collections.Generic;
using System.Linq;
using Insesoft.BusinessEntities;
using NHibernate.Criterion;

namespace Insesoft.DataObjects
{
    public class DOEntidad<T> 
    {
       
        public static DateTime GetCurrentDate()
        {
            using (var session = NHibernateHelper.GetSession())
            {
                var q = session.GetNamedQuery("CurrentDate");
                return q.UniqueResult<DateTime>();
            }
        }

       
    }
}


